﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MGU_v1_Lab1
{
    public class Exam
    {
        public Exam(string courseTitle, DateTime dateOfExam, int mark)
        {
            CourseTitle = courseTitle;
            DateOfExam = dateOfExam;
            Mark = mark;
        }

        public Exam()
        {
            CourseTitle = "BaseCourse";
            DateOfExam = Convert.ToDateTime("2000/01/01");
            Mark = 1;
        }

        public string CourseTitle { get; set; }
        public int Mark { get; set; }
        public DateTime DateOfExam  { get; set; }
       

        public override string ToString()
        {
            return "CourseTitle: " + CourseTitle + ". Date of exam: " + DateOfExam.ToString() + ". Mark" + Mark.ToString() + ".";
        }
    }
}
